            var $;
            function add_effect_to_block()
            {
                $(".result_block").mouseover(function(e)
                {
                        //console.log($(this).index());
                        //console.log($(this));
                        var overlay = $(this).find(".result_block_overlay");
                        var self = $(this);
                        var index = self.parent().index() * 3 + self.index();
                        //console.log(self.index());
                        if (index < VISTABLE_MARKER.length)
                        {
                            MARKER_CONTAINER.objects.remove( VISTABLE_MARKER[index]);
                            VISTABLE_MARKER[index].set("icon","/res/img/search_result/landmark_map_red.png");
                            VISTABLE_MARKER[index].text_color = "#FF0000";
                            MARKER_CONTAINER.objects.add( VISTABLE_MARKER[index]);
                            $(overlay).fadeIn(300,function(){
                                self.addClass("active");
                            });
                        }
                        //$(this).find(".result_block_overlay").css("display","");
                        
                 })
                    $(".result_block").mouseleave(function(e)
                    {
                         var overlay = $(this).find(".result_block_overlay");
                         var self = $(this);
                         var index = self.parent().index() * 3 + self.index();
                         if (index <= VISTABLE_MARKER.length)
                        {
                         VISTABLE_MARKER[index].set("icon","/res/img/search_result/landmark_map_gray.png");
                         VISTABLE_MARKER[index].text_color = "#AAAAAA";
                         $(overlay).fadeOut(300,function(){
                         self.removeClass("active");
                         });
                         }
                         
                    })
            }
            //json data , data container dom.
            function accommodation_refresh(data,container)
            {
                var record = data.Records[0][0][0];
                var dom = "";
                $.each(record,function(index,entity)
                {
                    if (index % 3 == 0)
                    {
                        dom+="<div class=\"row\">";
                    }
                    //var entity_index = (index+1 + ((CURRENT_PAGE[category_selected]-1) * PAGE_SIZE));
                    var entity_index = index+1;
                    dom+= "<div class=\"result_block col-md-4\">";
                    dom+="<div class=\"hotel_img\"><img src=\""+entity.EntityImageHead+"\"></div>";
                    dom+="<div class=\"hotel_services\">";
                    dom+="<div>";
                    if ((entity.HotelService & 256) != 0)
                    dom+="<div class=\"hotel_service\"><img src=\"/res/img/search_result/services_icons_kit.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\"><img src=\"/res/img/search_result/services_icons_kit_gray.gif\"></div>";
                    if ((entity.HotelService & 128) != 0)
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_discount.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_discount_gray.gif\"></div>";
                    if ((entity.HotelService & 64) != 0)
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_breakfast.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_breakfast_gray.gif\"></div>";
                    if ((entity.HotelService & 32) != 0)
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_speak_staff.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_speak_staff_gray.gif\"></div>";
                    if ((entity.HotelService & 16) != 0)
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_teaset.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_teaset_gray.gif\"></div>";
                    if ((entity.HotelService & 8) != 0)
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_unionplay.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_unionplay_gray.gif\"></div>";
                    if ((entity.HotelService & 4) != 0)
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_magazine.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_magazine_gray.gif\"></div>";
                    if ((entity.HotelService & 2) != 0)
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_chi_tv.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\" ><img src=\"/res/img/search_result/services_icons_chi_tv_gray.gif\"></div>";
                    if ((entity.HotelService & 1) != 0)
                    dom+="<div class=\"hotel_service\"><img src=\"/res/img/search_result/services_icons_cctv.gif\"></div>";
                    else
                    dom+="<div class=\"hotel_service\"><img src=\"/res/img/search_result/services_icons_cctv_gray.gif\"></div>";
                    dom+="<div class=\"clearfix\"></div>"
                    dom+="</div>";
                    
                    dom+="</div>";
                    dom+="<div class=\"hotel_short_info\">";
                    
                    dom+="<span class=\"map_marker\"><span class=\"map_marker_text_overlay\">"+entity_index+"</span></span>";
                    dom+="<span class=\"text-muted hotel_name\">"+entity.EntityName+"</span>";
                    dom+="</div>";
                    //<a ></a>
                    dom+="<div class=\"hotel_star\"><img src=\"/res/img/search_result/star_icon_hotel.png\"><span class=\"star_count\">"+entity.HotelRating+"</span></div>";
                    dom+="<a href=\""+DEUPAL_BASE+"/"+LAN+"/detail/"+entity.HotelWCUUID + "/"+SEARCH_KEY.replace(" ","-")+"/"+entity.EntityName.replace(" ","-")+"\" id=\"result_over_block\" class=\"result_block_overlay\" style=\"display:none;\">";
                    dom+="</a>";
                    dom+="</div>";
                    if ((index+1) %3 == 0 || (index+1) == record.length)
                    {
                        dom+="</div>";
                    }
                }
                )
                //console.log(dom);
                dom+="<div class=\"clearfix\"></div>"
                //container.empty();
                //container.append(dom);                
                //add_effect_to_block();
                
                $(container).fadeOut(250,function(){container.empty();container.append(dom);                
                add_effect_to_block();
                }).fadeIn(250);
                
                map_refresh(record);

            }
            jQuery(document).ready
            (
                function(e)
                {
                    $ = jQuery.noConflict();
                    //1 is accommodation category database index
                    if (typeof  RELOAD_FUNC[1] == "undefined")
                    {
                        RELOAD_FUNC[1] = [];
                    }
                    RELOAD_FUNC[1][0] = accommodation_refresh;
                    add_effect_to_block();
                    //add_effect_to_overlay();
                    
                }
            )